package com.zengfa.task.server.domain.entity;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zengfa.task.api.enums.JobStatus;

import lombok.Data;

@Data
public class Job {

	/**
	 * 作业id
	 */
	private String jobId;
	
	/**
	 * 作业名称
	 */
	private String jobName;
	
	/**
	 * 作业类型，1单任务，2流程任务
	 */
	private Integer jobType;
	
	/**
	 * 作业分组
	 */
	private String jobGroup;
	
	/**
	 * 业务id
	 */
	private String bizId;
	
	/**
	 * 作业执行IP
	 */
	private String execIp;
	
	private LocalDateTime startTime;
	
	private LocalDateTime endTime;
	
	private JobStatus status;
	
	private String message;
	
	/**
	 * 最后同步时间
	 */
	private LocalDateTime lastSyncTime;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime insertTime;
	
	private String insertBy;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private LocalDateTime updateTime;
	
	private String updateBy;
	
	/**
	 * 乐观锁
	 */
	private Integer optimistic;
	
}
